function getHTTPObject() 
{
	var xmlhttp; 
  	if(window.XMLHttpRequest)
  	{
    	xmlhttp = new XMLHttpRequest();
  	}
  	else if (window.ActiveXObject)
  	{
    	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    	if (!xmlhttp)
		{
        	xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
    	}   
	}
  	return xmlhttp;
}

function showglrs()
{
	var httpQuote = getHTTPObject();
	var num_glrs=window.document.getElementById('num_glrs').value;
	var url = "showglrs.php";
	var param = "num_glrs="+num_glrs;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('show_glrs').innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);	
}

function showglsr()
{
	var httpQuote = getHTTPObject();
	var num_glsr=window.document.getElementById('num_glsr').value;
	var url = "showglsr.php";
	var param = "num_glsr="+num_glsr;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('show_glsr').innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);	
}

function showpsp()
{
	var httpQuote = getHTTPObject();
	var psp_total=window.document.getElementById('psp_total').value;
	var url = "showpsp_detail.php";
	var param = "psp_total="+psp_total;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('show_psp').innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);	
}

function source_dtls()
{
	var httpQuote = getHTTPObject();
	var num_source=window.document.getElementById('num_source').value;
	var url = "source_detail.php";
	var param = "num_source="+num_source;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('source_dtls').innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);	
}

function show_subm()
{
	var httpQuote = getHTTPObject();
	var sub_total=window.document.getElementById('sub_total').value;
	//alert(cwr_total);
	var url = "subm.php";
	var param = "sub_total="+sub_total;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('subm').innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);	
}

function show_mono()
{
	var httpQuote = getHTTPObject();
	var mono_total=window.document.getElementById('mono_total').value;
	//alert(cwr_total);
	var url = "mono.php";
	var param = "mono_total="+mono_total;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('mono').innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);	
}

function show_centi()
{
	var httpQuote = getHTTPObject();
	var centi_total=window.document.getElementById('centi_total').value;
	//alert(cwr_total);
	var url = "centi.php";
	var param = "centi_total="+centi_total;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('centi').innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);	
}

function show_sp()
{
	var httpQuote = getHTTPObject();
	var sp_total=window.document.getElementById('sp_total').value;
	//alert(cwr_total);
	var url = "sp.php";
	var param = "sp_total="+sp_total;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('sp').innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);	
}

function show_cwr_cap()
{
	var httpQuote = getHTTPObject();
	var cwr_total=window.document.getElementById('cwr_total').value;
	//alert(cwr_total);
	var url = "cwr_cap.php";
	var param = "cwr_total="+cwr_total;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('cwr_cap').innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);	
}
function show_glsr_cap()
{
	var httpQuote = getHTTPObject();
	var glsr_total=window.document.getElementById('glsr_total').value;
	var url = "glsr_cap.php";
	var param = "glsr_total="+glsr_total;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('glsr_cap').innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);	
}
function show_glr_cap()
{
	var httpQuote = getHTTPObject();
	var glr_total=window.document.getElementById('glr_total').value;
	var url = "glr_cap.php";
	var param = "glr_total="+glr_total;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('glr_cap').innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);	
}
function show_ohsr_cap()
{
	var httpQuote = getHTTPObject();
	var ohsr_total=window.document.getElementById('ohsr_total').value;
	var url = "ohsr_cap.php";
	var param = "ohsr_total="+ohsr_total;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('ohsr_cap').innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);	
}
function showpsp_q1()
{
	var httpQuote = getHTTPObject();
	var psp_total=window.document.getElementById('psp_total').value;
	var url = "showpsp_detail_q1.php";
	var param = "psp_total="+psp_total;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(url);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('show_psp_q1').innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);	
}
function show_tanker(i)
{
	var httpQuote = getHTTPObject();
	var water_supply_no=window.document.getElementById('water_supply_no'+i).value;
	var url = "tanker.php";
	var param = "water_supply_no="+water_supply_no;
   	httpQuote.open("POST",url,true);
	//alert(param);
	//alert(httpQuote.onreadystatechange);
	httpQuote.onreadystatechange = function() {
	//alert(httpQuote.readyState);
	if(httpQuote.readyState==4)
	{
	    if (httpQuote.status==200 )
		{
			//alert(httpQuote.responseText);
			document.getElementById('tanker'+i).innerHTML=httpQuote.responseText;
			//confirm("Do you want to save!");
		}
		else
		{
			alert("An error has occured making the request");
		}
	}
	}
	httpQuote.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	httpQuote.send(param);	
}








